package com.exer.basic.sort;

/**
 * (静态)非静态成员域在定义时初始化和(静态)非静态中初始化的优先级是平级的.
 * (静态)非静态块中初始化的域甚至能在该域声明的上方。
 */
public class TestStatic {
    static {
        a = 2;
    }

    static int a = 1;
    static int b = 3;

    static {
        b = 4;
    }

    {
        c = 10;
    }

    int c = 9;

    public static void main(String[] args) {
        System.out.println(a);
        System.out.println(b);
    }
}
